package com.shi.yoyoshop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shi.yoyoshop.bean.Goods;

import java.util.List;

/**
 * @author 20556
 * @description 针对表【goods】的数据库操作Service
 * @createDate 2024-01-04 15:06:01
 */
public interface GoodsService extends IService<Goods> {
    List<Goods> getGoodsListByHotTypeId(Integer typeId);

    Page<Goods> getGoodsListByHotTypeIdWithPage(Page<Goods> page,Integer typeId);

    Goods getGoodsAndTypeByGoodsId(Integer goodId);

    Page<Goods> getGoodsListByTypeIdWithPage(Page<Goods> page, Integer typeId);

    Goods getGoodsById(Integer goodsId);

    Page<Goods> getGoodsListByNameLikeWithPage(Page<Goods> goodsPage, String name);

    Page<Goods> getGoodsListWithPage(Page<Goods> page);

    void removeGoodsById(Integer id);

    void modifyGoodsById(Goods goods);

    List<Goods> getGoodsListByTypeId(Integer id);

    List<Goods> getGoodsList();
}
